<?php
$addons_route = config('addons.route')?:'addons';
$addons_middleware = config('addons.middleware')?:[];
\think\facade\Route::any($addons_route.'/<addon>/<controller?>/<action?>','\Satan\Think\Addons\controller\AddonsController@execute')
    ->middleware($addons_middleware)
    ->name('addons');